package com.ryskoo.common.dto.basicdata;


import com.ryskoo.common.dto.BasicDTO;

import java.util.ArrayList;
import java.util.List;

/**
 * 组织机构dto
 * @author thq
 */
public class OrganizationDTO extends BasicDTO {

    private static final long serialVersionUID = 4276392305567612048L;

    /* 机构名称 */
	private String name;

	/* 上级机构 */
	private String parentId;

	/* 机构描述 */
	private String description;
	
	/* 子机构集合 */
	private List<OrganizationDTO> childrens = new ArrayList<OrganizationDTO>();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public List<OrganizationDTO> getChildrens() {
		return childrens;
	}

	public void setChildrens(List<OrganizationDTO> childrens) {
		this.childrens = childrens;
	}

	@Override
	public String toString() {
		return "OrganizationDTO [name=" + name + ", parentId=" + parentId
				+ ", description=" + description + "]";
	}
}
